<?php
include ("zipfile.php");
$zipfile = new zipfile();
$fp = fopen("test.txt", "rb");
$buffer = fread($fp, 1000);
fclose($fp);
$zipfile->add_file($buffer, "test.txt");
$fp1 = fopen("archivio.zip", "wb");
fwrite($fp1, $zipfile->file());
fclose($fp1);


?>